
// <copyright file="SingletonAttribute.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The singleton attribute.
// </summary>


#region Header

/*
 * Created by SharpDevelop.
 * User: blrsos
 * Date: 7/21/2011
 * Time: 6:37 PM
 *
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
#endregion Header

namespace SubhadraSolutions.Sharp.Utils.Reflection
{
    using System;

    /// <summary>
    /// The singleton attribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class SingletonAttribute : Attribute
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="SingletonAttribute"/> class.
        /// </summary>
        public SingletonAttribute()
        {
            this.InstancePropertyName = "Instance";
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        /// Gets or sets the instance property name.
        /// </summary>
        public string InstancePropertyName { get; set; }

        #endregion Public Properties
    }
}
